package com.itheima.service;

import com.github.pagehelper.PageInfo;
import com.itheima.domain.User;

public interface UserService {
    //添加

    public  boolean   add(User user);


    //删除
    public  boolean  delete(Integer id);



    //修改
    public  boolean update(User user);


    //查询单个
    public  User  findById(Integer id);


    //分页查询
    public PageInfo<User> findAll(int page, int size);
}
